int Count_Digit(const int N, const int D)
{
	int num = N;
	int nums[100];
	int i = 0;
	int count = 0;

	//数位分离
	num = abs(num);
	do
	{
		nums[i] = num % 10;
		num /= 10;
		i++;
	} while (num > 0);

	//统计次数
	for (int j = 0; j < i; j++)
	{
		if (nums[j] == D)
		{
			count++;
		}
	}

	return count;
}